<!--  <h1>El-容器组件</h1>-->
<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <!-- 1.顶部栏标题 -->
        <h1 style="background-color: #0aa1ed;color: #fff;">后台管理系统</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- 2.菜单栏-菜单组件 -->
          <el-menu style="margin-left: 20px;">
            <el-menu-item index="1">用户管理</el-menu-item>
            <el-menu-item index="2">车辆管理</el-menu-item>
            <el-menu-item index="3">电子围栏管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <!-- 3.主体内容放表格  -->
          <el-table :data="arr">
            <el-table-column label="编号" width="80" type="index" align="center"></el-table-column>
            <el-table-column label="姓名" prop="name" align="center"></el-table-column>
            <el-table-column label="年龄" prop="age" align="center"></el-table-column>
            <el-table-column label="性别" prop="gender" align="center"></el-table-column>
            <el-table-column label="手机号" prop="phone" align="center"></el-table-column>
            <el-table-column label="地址" prop="addr" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from "vue";

const arr = ref([
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'18811112222',addr:'北京市学院路圣熙8号'}
]);
</script>

<style scoped>

</style>